package com.violet.detective.util;

import org.omg.CORBA.OBJECT_NOT_EXIST;

public enum ERCode {
    /**
     * 一切正常
     */
    OK("OK", "00000"),
    /**
     * 请求参数错误
     */
    PARAM_ERR("PARAM_ERROR", "A1000"),


    /**
     * 验证码错误
     */
    VERTIF_CODE_ERR("VERTIF_CODE_ERR", "B1001"),

    /**
     * isbn查询失败
     */
    SEARCH_ISBN_ERR("SEARCH_ISBN_ERR", "C1001"),
    /**
     * 插入material异常
     */
    INSERT_MATERIAL_ERR("INSERT_MATERIAL_ERR", "B1002"),
    /**
     * 查询navigation异常
     */
    SEARCH__ERR("SEARCH__ERR", "A1001"),
    SYSTEM_ERR("SYSTEM_ERR", "A1002"),

    LOGIN_INFO_ERR("LOGIN_INFO_ERR", "B1003"),

    MAX_HOLD_ERR("MAX_HOLD_ERR","B1004"),

    MAX_RESERVATION_ERR("MAX_RESERVATION_ERR","B1005"),

    OBJECT_NOT_EXIST_ERR("OBJECT_NOT_EXIST_ERR", "B1006");


    public String msg;
    public String code;

    ERCode(String msg, String code) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }
}
